home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / progs / editor / frexxed / fpl / hotkey.fpl < prev    next >
Text File  |  1995-07-19  |  591b  |  21 lines

  1. int process;
  2.  
  3. export void hotkey_exit()
  4. {
  5.   if (process)
  6.     System("break "+ltostr(process));
  7.   process=0;
  8. }
  9.  
  10. export void hotkey_changed()
  11. {
  12.   hotkey_exit();
  13.   System("makedir t:FrexxEd", "", "NIL:");
  14.   System("run >t:FrexxEd/process FrexxEd:bin/FrexxKey Hotkey=\""+ReadInfo("hotkey")+"\" CX_PRIORITY=1 SYSTEM=rx \" /* */ ADDRESS "+ ReadInfo("arexx_port")+" 'Deiconify();'\"");
  15.   process=atoi(substr(LoadString("t:FrexxEd/process"), 4, -1));
  16. }
  17. ConstructInfo("hotkey", "hotkey_changed();", "", "gsw(system)", "", 0, 0, "Alt Shift Return");
  18. Hook("Exit", "hotkey_exit();");
  19.  
  20. hotkey_changed();
  21.